package com.wchat.bean.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wchat.bean.model.enums.ChatTypeEm;
import com.wchat.bean.model.enums.MsgContentTypeEm;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (ChatMsgs)实体类
 *
 * @author makejava
 * @since 2021-09-01 14:52:34
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class ChatMsgs implements Serializable {
    private static final long serialVersionUID = -77271090400646521L;

    @TableId(type = IdType.INPUT)
    private Long msgId;
    /**
     * 发送者id
     */
    private Integer sender;
    /**
     * 接收者id
     */
    private Integer target;
    /**
     * 消息类型  SINGLE / GROUP
     */
    private ChatTypeEm chatType;
    /**
     * 消息类型
     */
    private MsgContentTypeEm msgType;
    /**
     * 消息内容
     */
    private String content;
    /**
     * 是否撤回
     */
    private Boolean recall;
    /**
     * 是否以读
     */
    private Boolean readed;
    /**
     * 已成功发送
     */
    private Boolean isSend;
    /**
     * 创建事件
     */
    private Date created;
    /**
     * 更新时间
     */
    private Date updated;

}
